package com.app.designpattern.creation.prototype;

import android.util.Log;

import java.text.MessageFormat;

/**
 * USER: zjw
 * DATA: 2019/4/12 0012
 * TIME: 上午 10:15
 */
public class MailUtils {
    public static void sendMail(Mail mail) {
        String content = "姓名是:{0},邮箱地址是{1},内容是:{2}";
        Log.i("cloneable-->sendmail", MessageFormat.format(content, mail.getName(), mail.getEmailAddress(), mail.getContent()));
    }
    public static void saveMail(Mail mail){
        Log.i("cloneable-->savemail",mail.toString());
    }
}
